<?php
class user{
    // member declaration
    public $id;
    public $user_name;
    public $first_name;
    public $last_name;
    public $city;
    public $email;
    public $country;
    public $create_date;
    public $img_path;

    public function __construct($id, $user_name, $first_name, $last_name, $email, $city, $country, $create_date, $img_path) {
       $this->id = $id;
       $this->user_name = $user_name;
       $this->first_name = $first_name;
       $this->last_name = $last_name;
       $this->email = $email;
       $this->city = $city;
       $this->country = $country;
       $this->create_date = $create_date;
       $this->img_path = $img_path;
    }

    // method declaration
    public function displayNames() {
        echo "The username is: ".$this->user_name;
    }

    public function toString(){
    	echo "\nid: ".$this->id;
    	echo "\nusername: ".$this->user_name;
    	echo "\nfirst name: ".$this->first_name;
    	echo "\nlast name: ".$this->last_name;
    	echo "\nemail: ".$this->email;
    	echo "\ncity: ".$this->city;
    	echo "\ncountry: ".$this->country;
    	echo "\ncreate date: ".$this->create_date;
    	echo "\nimage name: ".$this->img_path;
    }
}
?>